package com.goodving.guli.bt.weight.family;

import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;

import com.goodving.guli.activity.MemberInfoBaseActivity;
import com.goodving.guli.activity.SystemBarTintActivity;
import com.goodving.guli.bt.profile.scale.GuliLog;
import com.goodving.guli.bt.weight.UserInfoManager;


public class UserInfoActivity extends SystemBarTintActivity {
    private static final String f11450a;
    private int f11451b;
    private UserInfoFragment f11452c;

    static {
        f11450a = UserInfoActivity.class.getSimpleName();
    }

    public UserInfoActivity() {
        this.f11451b = -1;
    }

    protected void onActivityResult(int i, int i2, Intent intent) {
        super.onActivityResult(i, i2, intent);
        UserInfoFragment c2023h = (UserInfoFragment) getFragmentManager().findFragmentByTag(UserInfoFragment.class.getName());
        if (c2023h != null) {
            c2023h.onActivityResult(i, i2, intent);
        }
    }

    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        if (getIntent() != null) {
            this.f11451b = getIntent().getIntExtra(MemberInfoBaseActivity.USER_INFO_UID, -1);
            GuliLog.tracePrintInfo(f11450a, "UserInfoActivity receive the infomation uid " + this.f11451b);
            GuliLog.tracePrintInfo(f11450a, "userinfo " + UserInfoManager.getInstance().getInfoByUid(this.f11451b).toString());
        }
        this.f11452c = (UserInfoFragment) UserInfoFragment.m15865a(this.f11451b);
        FragmentTransaction beginTransaction = getFragmentManager().beginTransaction();
        beginTransaction.add(16908290, this.f11452c, UserInfoFragment.class.getName());
        beginTransaction.commit();
    }

    protected void onPause() {
        super.onPause();
    }

    protected void onResume() {
        super.onResume();
    }
}
